From 69c1e6bb0db5d9cea1910ebac15dd0a7fa2df399 Mon Sep 17 00:00:00 2001 From: oliskoli Date: Sat, 26 Apr 2008 19:40:23 +0000 Subject: [PATCH] axim_gpb: Make a right check of coordinate values. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3220 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/axim_gpb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/axim_gpb.c b/gpsbabel/axim_gpb.c index 6d083cee8..a931ba033 100644 --- a/gpsbabel/axim_gpb.c +++ b/gpsbabel/axim_gpb.c @@ -104,8 +104,8 @@ decode_buff(const char *buff, route_head *track) (tm.tm_hour > 23) || (tm.tm_min > 60) || (tm.tm_sec > 60), MYNAME ": Invalid or unsupported file (invalid time-stamp)."); is_fatal( - (fabs(wpt->latitude) > 180) || - (fabs(wpt->longitude) > 90), + (fabs(wpt->latitude) > 90) || + (fabs(wpt->longitude) > 180), MYNAME ": Invalid or unsupported file (lat or/and lon out of range)."); /* post work */ -- 2.30.2